/**客户管理-收件人信息PI**/
import obj from '@/utils/request'
let {request,baseURL} = obj
//查询所有收件人
export function getAddressee(data) {
  return request({
    url: '/receiver/page',
    method: 'post',
    data
  })
}
//查询所有收件人
export function getReceiverByCustomerNum(params) {
  return request({
    url: '/receiver/customerNum',
    method: 'get',
    params
  })
}
//添加收件人
export function addAddressee(data) {
  return request({
    url: '/receiver',
    method: 'post',
    data
  })
}
//修改收件人
export function modAddressee(data) {
  return request({
    url: '/receiver',
    method: 'put',
    data
  })
}
//删除收件人
export function delAddressee(ids) {
  return request({
    url: '/receiver',
    method: 'delete',
    data:ids
  })
}
//禁用启用门店
export function disableOrEnableAddressee(addressee,params) {
  return request({
    url: '/receiver/disableOrEnable',
    method: 'put',
    data:addressee,
    params
  })
}
